<!-- 二级导航 -->
function xNav(no){
	var xNavHtml = $(".x-nav").load("directives/xNav/x-nav.html", function(response, status, xhr) {
		$("ul.cl li").each(function(index, element) {
            if(no == $(element).val()) {
				$(element).children("a").css("background", "#0AD");
				$(element).children("a").css("color", "#FFF");
				return;
			}
			if(window.location.href.indexOf("task-center-visit.html") >= 0) {	//访客单中心
				if($(element).val() == 13) {
					$(element).children("a").prop("href", "published-task-visit.html");
				} else if($(element).val() == 16) {
					$(element).children("a").prop("href", "taked-task-visit.html");
				}
			}
        });
	});
}
